#include <reg52.h>
#define uint unsigned int
void delay1s();
void main()
{
	while(1)
	{
		P1=0xfe;	
		delay1s();
		P1=0xfd;	
		delay1s();
		P1=0xfb;
		delay1s();
		P1=0xf7;
		delay1s();
		P1=0xef;
		delay1s();
		P1=0xdf;
		delay1s();
		P1=0xbf;
		delay1s();
		P1=0x7f;
		delay1s();
	}	
}
void delay1s()
{
	uint i,j;
	for(i=100;i>0;i--)		
		for(j=100;j>0;j--);
}